package com.cj.cms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cj.common.entity.IdEntity;
import com.cj.sys.entity.security.User;

@Entity
@Table(name = "LEAVE_WORD")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE,region="leaveWord")
public class LeaveWord extends IdEntity{
	public LeaveWord(){
	}
	public LeaveWord(Long id){
		super.setId(id);
	}
	private String title;
	private String description;
	private String cata;
	private String resolvent;
	//	0  ：  未解决	1  ：  解决   2:假删除
	private int status = 0;
	private int isOpen = 0;		//0:不公开   1:公开
	private String qq;
	private String email;
	private String telephone;
	private String other;
	private String name;
    private Date createTime;
    private Date replayTime;
    private User replayUser;
    
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCata() {
		return cata;
	}
	public void setCata(String cata) {
		this.cata = cata;
	}
	public String getResolvent() {
		return resolvent;
	}
	public void setResolvent(String resolvent) {
		this.resolvent = resolvent;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getIsOpen() {
		return isOpen;
	}
	public void setIsOpen(int isOpen) {
		this.isOpen = isOpen;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getOther() {
		return other;
	}
	public void setOther(String other) {
		this.other = other;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getReplayTime() {
		return replayTime;
	}
	public void setReplayTime(Date replayTime) {
		this.replayTime = replayTime;
	}
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "REPLAY_USER")
	public User getReplayUser() {
		return replayUser;
	}
	public void setReplayUser(User replayUser) {
		this.replayUser = replayUser;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
